<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>

<body>
<?php
include "../mysql/mysql.php";
    $aa = new mysql;
    $aa->link("");
    include "../myfunction.php";
    $bb= new myfunction;




$sql = "INSERT INTO user_info (user_name, user_pw, img, qpass1, anspass1, qpass2, anspass2) 
                       VALUES ('usame', 'password', 'pic', 's01', 'ss01', 's02', 'ss02' )";
$result= $aa->excu($sql);

if ($result === TRUE) {

echo "<meta http-equiv=\"refresh\" content=\"0.5;url='login.php'\">";

} else {
  ?>
  注册失败，请重新<a href="register.php">注册</a>！
  <?php
}   
 ?>
 
 
 <?php
include "../mysql/mysqlclose.php";
?>
</body>
</html>